<template>
	<view class="box">
		<Title name="社团动态内容"></Title>

		<view class="info">
			<view class="top">
				<view class="left">
					<image src="../../static/img/icon_mine.png" mode=""></image>
					<p>
						<text>绿色校园社团</text><br>
						<text class="sub">30分钟前发布</text>
					</p>
				</view>
				<view class="right">
					<text>关注</text>
				</view>
			</view>

			<view class="content">
				<view class="top">
					让我们的校园多一点绿色，需要我们都加入进来。
				</view>
				<view class="tab">
					<image src="../../static/img/%5D%60HLX0HH@AQCAU1G)BXM%5DPA.png" mode=""></image>
					<image src="../../static/img/%5D%60HLX0HH@AQCAU1G)BXM%5DPA.png" mode=""></image>
				</view>
			</view>

			<view class="bottom">
				<view class="like">
					<image src="../../static/img/zan.png" mode=""></image>
					<text>8</text>
				</view>
			</view>

			<view class="deline"></view>
		</view>

		<view class="comments">
			<view class="title">评论 5</view>
			<view class="item-list">
				<view class="items">
					<view class="top">
						<view class="left">
							<image src="../../static/logo.png" mode=""></image>
							<text class="name">小青椒</text>
						</view>
						<text class="time">刚刚</text>
					</view>
					<text class="bottom">说得非常对我赞成！</text>
				</view>

				<view class="items">
					<view class="top">
						<view class="left">
							<image src="../../static/logo.png" mode=""></image>
							<text class="name">小青椒</text>
						</view>
						<text class="time">刚刚</text>
					</view>
					<text class="bottom">说得非常对我赞成！</text>
				</view>
			</view>
		</view>
		
		<view class="send">
			<view class="left">
				<input type="text" value="" placeholder="说说你的想法吧" />
			</view>
			
			<view class="right">
				评论
			</view>
		</view>
	</view>
</template>

<script>
	import Title from "../components/title.vue"
	export default {
		components: {
			Title
		}
	}
</script>

<style lang="scss" scoped>
	.box {
		min-height: 100vh;
		background-color: #fff;

		.info {
			padding: 20rpx 30rpx;

			.top {
				margin-top: 30rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;

				.left {
					display: flex;
					align-items: center;

					image {
						width: 91rpx;
						height: 91rpx;
						border-radius: 50%;
					}

					text {
						font-size: 14px;
						margin-left: 10rpx;
					}

					.sub {
						color: $subColor;
						font-size: 12px;
					}
				}

				.right {
					display: flex;
					justify-content: center;
					align-items: center;
					width: 127rpx;
					height: 54rpx;
					background-color: $yellow;
					border-radius: 91rpx;
					font-size: 25rpx;

					image {
						width: 30rpx;
						height: 30rpx;
					}
				}
			}


			.content {
				.top {
					font-size: 25rpx;
				}

				.tab {
					padding-top: 30rpx;

					image {
						margin-right: 30rpx;
						width: 250rpx;
						height: 200rpx;
					}
				}
			}

			.bottom {
				margin: 30rpx 0;
				display: flex;
				justify-content: flex-end;

				.like {
					box-sizing: border-box;
					display: flex;
					justify-content: space-between;
					align-items: center;
					width: 127rpx;
					height: 54rpx;
					background-color: rgba(255, 181, 197, 0.73);
					border-radius: 91rpx;
					font-size: 25rpx;
					padding: 0 35rpx;

					image {
						width: 30rpx;
						height: 30rpx;
					}
				}
			}

			.deline {
				height: 18rpx;
				background: #EAEAEA;
				width: 100%;
				position: absolute;
				left: 0;
			}
		}

		.comments {

			.title {
				padding: 0 20rpx;
				font-size: $middleFont;
				font-weight: bold;
				background-color: #fff;
				line-height: 2;
				margin-bottom: $smallMargin;
				border-bottom: 1px solid #EDEDED;
			}

			.item-list {

				.items {
					padding: 10px 20rpx;
					font-size: $smallFont;
					background-color: #fff;
					margin-bottom: 9rpx;
					border-bottom: 1px solid #EDEDED;

					.top {
						display: flex;
						justify-content: space-between;
						align-items: center;

						.left {
							display: flex;
							align-items: center;

							&>image {
								width: 90rpx;
								height: 90rpx;
								border-radius: 50%;
								margin-right: 18rpx;
							}
						}

						.time {
							color: $subColor;
						}
					}

					.bottom {
						margin-left: 108rpx;
					}
				}
			}
		}
	
		.send {
			position: fixed;
			bottom: 10rpx;
			left: 10rpx;
			right: 10rpx;
			font-size: 14px;
			.left {
				box-sizing: border-box;
				width: 571rpx;
				height: 64rpx;
				padding: 10rpx;
				float: left;
				border-radius: 5px;
				background-color: rgba(237, 237, 237, 1);
				color: rgba(16, 16, 16, 1);
			
				input {
					font-size: 25rpx;
					line-height: 64rpx;
				}
			}
			
			.right {
				margin-left: 20rpx;
				float: left;
				width: 127rpx;
				height: 64rpx;
				line-height: 54rpx;
				border-radius: 5px;
				background-color: rgba(255, 236, 139, 1);
				text-align: center;
			}
		}
	}
</style>
